/**
 * @file misc.h
 * @author Yao Zongyou <yaozy2010@gmail.com>
 * @date 2011-04-05
 */

#ifndef MISC_H_2011_04_05
#define MISC_H_2011_04_05

#pragma once

void Cleanup(HWND, short);
void ShutdownPrivilege(void);
bool IsMPEGAudio(LPTSTR);
void UnmapMemory(void);
void GetSavePath(HWND);
bool IsFileAudio(LPCTSTR);
void ToggleDesktopLink(void);
bool ParseCommandLine(LPTSTR, size_t, HWND);
void BroadcaseApMessage(LPDWORD, int);
void MSNCheckAndUpdate(HWND, LPTSTR, bool);
bool CheckForUpdates(HWND, HMODULE *);
void ToggleHotKeys(HWND, bool);
void ReadOptionsAndConfigure(HWND, short *);
void SaveOptions(short);
//bool CheckForOtherInstances(AP_DATACOPY *);
BOOL CALLBACK APWindowCheckProc(HWND, LPARAM);
void CopyData(HWND, TCHAR *);
void GetMyMusicDir(HWND, TCHAR *);

#endif /* MISC_H_2011_04_05 */
